<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<script type="text/javascript" src="/static/style/jscookmenu.js"></script>
		<script type="text/javascript" src="/static/style/ThemeVista/theme.js"></script>
		<script language="JavaScript" type="text/javascript" src="richtext_compressed.js"></script>
		<link rel="stylesheet" href="/static/style/ThemeVista/theme.css" type="text/css">
		{% block head %} <!--Insertamos cabezales especiales --> {% endblock %}
		<title>{% block titulo %} {{sitio}} {% endblock %}</title>
	</head>
	<body bgcolor="#{{colores.fondo}}">
		{% include "javabar.html" %}
		<table id="cabecera" bgcolor="#000000" width="100%" height="100px" cellpadding="-1" cellspacing="0" border="0">
			<td width="500" height="100">
				<img src="/static/banner.jpeg" width="500" height="100" usemap="#home" border="0" dvspace="0" hspace="0">
				<map name="home">
					<area shape="rect" coords="6,4,491,59" href="/" />
			  </map>
			</td>
			<td height="100" background="/static/banner2.jpeg" align="right" valign="middle">
				{% if logged %}
					<img src="/static/profiles/{{user.get_profile.pic}}" align="right" alt="PF" width="80"  height="80" hspace="5" vspace="0" border="1">
					{{ usr }}<br />
					<font size="-3">
						<a href="/usr/profile/{{user.id}}">Ver perfil</a><br>
						<a href="/usr/logout">(Logout)</a>
					</font>
				{% else %}
					<form action="/usr/login" method = "post">
						<a href="/usr/registro" style="text-decoration:none"><font color="#FF0000" size="-1"> Registrarse </font></a><br />
						Usuario: <input name="username"  id="id_username" type="text" size="9" maxlength="30" />
						Pass: <input name="password" id="id_password" type="password" size="9" maxlength="30" /><br />
						<a href="/usr/newpass" style="text-decoration:none"><font color="#0066FF" size="-2"> Olvide mi password </font></a>
						<input type="checkbox"  checked="checked" name="remember" id="id_remember" /><font color="#999999" size="-2">Recordame</font>
						<input type="submit" value="Entrar">
					</form>
				{% endif %}
			</td>
		</table>
		<table id="centro" width="100%" height="300">
			<td bgcolor="#{{colores.laterales}}" width="15%">
				<!-- Espacio vacio al lado izquierdo -->
			</td>
			<td bgcolor="#{{colores.centro}}" width ="70%" >
				{% block central %} <!--Bloque completo de informacion central -->	{% endblock %}
			</td>
			<td bgcolor="#{{colores.laterales}}" width="15%" valign="top" align="center"s>
					<br />
					<form action="/search" method = "post">
						<b>BUSCAR</b><br />
						<input name="search" type="text" maxlength="30" /><br />
						<input type="submit" value="Buscar">
					</form>
			</td>
		</table>
		<table id="pie" bgcolor="#{{colores.pie}}" width="100%" height="25">
			<td width="50%">
				{% block cierre %}<!-- Cierre de la pagina -->
					{% include "submenu.html" %}
				{% endblock %}
			</td>
			{% block estadisticas %}
				<td width="25%">
					<font size="-2">
						<b>Usuarios</b><br>
						Usuarios Registrados: {{cregistrados}} <br>
						Usuarios Logeados: {{cloggeados}} <br>
					</font>
				</td>
				<td width="25%">
					<font size="-2">
						<b>Foro</b><br>
							Cantidad de Subforos: {{csubforos}}<br>
							Cantidad de Threads: {{cthreads}} <br>
							Cantidad de Comentarios: {{ccomentarios}} <br>
						</font>
				</td>
			{% endblock %}
		</table>
	</body>
</html>
